<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const map1 = new Map()

      map1.set('a', 1)
      map1.set('b', 2)
      map1.set('c', 3)

      // console.log(map1.values())
      // map1.forEach((item, index) => {
      //   console.log(item, index)
      // })
      console.log(map1)
      for (const iterator of map1) {
        console.log(iterator) // ['a', 1]
      }
    </script>
  </body>
</html>
